package xin.marcher.module.evaluate.converter;

import org.mapstruct.Mapper;
import xin.marcher.module.evaluate.domain.dto.ShopScoreWeightConfigurationDTO;
import xin.marcher.module.evaluate.domain.entity.ShopScoreWeightConfigurationDO;
import xin.marcher.module.evaluate.domain.request.ShopScoreWeightConfigurationRequest;

import java.util.List;

/**
 * 店铺评分权重对象克隆
 */
@Mapper(componentModel = "spring")
public interface ShopScoreWeightConfigurationConverter {
    /**
     * 店铺评分权重 request -> do
     *
     * @param request
     * @return
     */
    ShopScoreWeightConfigurationDO requestToEntity(ShopScoreWeightConfigurationRequest request);

    /**
     * 店铺评分权重 list do -> dto
     *
     * @param shopScoreWeightConfigurationDOList
     * @return
     */
    List<ShopScoreWeightConfigurationDTO> listEntityToDTO(List<ShopScoreWeightConfigurationDO> shopScoreWeightConfigurationDOList);
}
